# -*- coding: utf-8 -*-
"""
   .xfree.fixtures
    ~~~~~~~~~~~~~~~~~~~~~
    文件描述：组设置
    作者：xfree
    邮箱：cy_83k@qq.com
"""

from collections import OrderedDict

# 创建一个有序字典，用于存储不同用户组的设置信息
fixture = OrderedDict(
    (
        # 第一个用户组：管理员组
        (
            "Administrator",
            {
                "description": "The Administrator Group",
                # 是否为管理员
                "admin": True,
                # 是否为超级版主
                "super_mod": False,
                # 是否为版主
                "mod": False,
                # 是否被封禁
                "banned": False,
                # 是否为访客
                "guest": False,
                # 是否可以编辑帖子
                "editpost": True,
                # 是否可以删除帖子
                "deletepost": True,
                # 是否可以删除主题
                "deletetopic": True,
                # 是否可以发布主题
                "posttopic": True,
                # 是否可以回复帖子
                "postreply": True,
                # 是否可以编辑用户信息（以管理员权限）
                "mod_edituser": True,
                # 是否可以封禁用户（以管理员权限）
                "mod_banuser": True,
                # 是否可以查看隐藏内容
                "viewhidden": True,
                # 是否可以设置内容为隐藏
                "makehidden": True,
            },
        ),
        # 第二个用户组：超级版主组
        (
            "Super Moderator",
            {
                "description": "The Super Moderator Group",
                "admin": False,
                "super_mod": True,
                "mod": False,
                "banned": False,
                "guest": False,
                "editpost": True,
                "deletepost": True,
                "deletetopic": True,
                "posttopic": True,
                "postreply": True,
                "mod_edituser": True,
                "mod_banuser": True,
                "viewhidden": True,
                "makehidden": True,
            },
        ),
        # 第三个用户组：版主组
        (
            "Moderator",
            {
                "description": "The Moderator Group",
                "admin": False,
                "super_mod": False,
                "mod": True,
                "banned": False,
                "guest": False,
                "editpost": True,
                "deletepost": True,
                "deletetopic": True,
                "posttopic": True,
                "postreply": True,
                "mod_edituser": True,
                "mod_banuser": True,
                "viewhidden": True,
                "makehidden": False,
            },
        ),
        # 第四个用户组：成员组
        (
            "Member",
            {
                "description": "The Member Group",
                "admin": False,
                "super_mod": False,
                "mod": False,
                "banned": False,
                "guest": False,
                "editpost": True,
                "deletepost": False,
                "deletetopic": False,
                "posttopic": True,
                "postreply": True,
                "mod_edituser": False,
                "mod_banuser": False,
                "viewhidden": False,
                "makehidden": False,
            },
        ),
        # 第五个用户组：被封禁组
        (
            "Banned",
            {
                "description": "The Banned Group",
                "admin": False,
                "super_mod": False,
                "mod": False,
                "banned": True,
                "guest": False,
                "editpost": False,
                "deletepost": False,
                "deletetopic": False,
                "posttopic": False,
                "postreply": False,
                "mod_edituser": False,
                "mod_banuser": False,
                "viewhidden": False,
                "makehidden": False,
            },
        ),
        # 第六个用户组：访客组
        (
            "Guest",
            {
                "description": "The Guest Group",
                "admin": False,
                "super_mod": False,
                "mod": False,
                "banned": False,
                "guest": True,
                "editpost": False,
                "deletepost": False,
                "deletetopic": False,
                "posttopic": False,
                "postreply": False,
                "mod_edituser": False,
                "mod_banuser": False,
                "viewhidden": False,
                "makehidden": False,
            },
        ),
    )
)